package com.sodaopen.study.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.sodaopen.study.entity.Clazz;

public interface ClazzMapper {

	@Select("select * from t_clazz order by id desc")
	List<Clazz> selectAll();

	@Insert("insert into t_clazz(name) values (#{name})")
	void saveClazz(Clazz clz);

	void saveClazzCourse(@Param("clazzId") Integer clazzId, @Param("courseIds") String[] courseIds);

}
